<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>用户详情</title>
    <div th:replace="common/link::header"></div>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header">详情信息</div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-form layui-form-pane" lay-filter="info_form" id="info_form">
                    <input type="hidden" name="id" id="id">
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">图片</label>
                        <div style="width: 1000px">
                            <div class="layui-upload">
                                <div class="layui-upload-list" id="img_upload">
                                    <div class="layui-upload-list">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img0"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img1"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img2"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img3"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img4"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img5"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img6"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img7"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img8"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img9"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img10"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img11"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img12"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img13"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img14"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img15"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img16"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img17"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img18"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img19"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img20"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img21"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img22"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img23"
                                             hidden="true">
                                        <img style="width: 100px;height: 100px;padding: 5px;float: left;"
                                             onclick="fun.preview(this)" id="upload-img24"
                                             hidden="true">
                                        <p id="upload-img-text"></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                   <!-- &lt;!&ndash;layui-disabled是不可修改的css样式放在input里的&ndash;&gt;
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">线路编号</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="lineNo" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">线路名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="lineName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">序列号</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="sNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">门翼编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="GPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">门翼名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="GPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">读写器编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="RPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">读写器名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="RPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">磁模块编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="MPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">磁模块名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="MPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">显示屏编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="DPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">显示屏名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="DPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">通行控制单元编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="CPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">通行控制单元名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="CPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">备用电源编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="EPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">备用电源名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="EPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">数据存储卡编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="SPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">数据存储卡名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="SPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">编码器编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="CoPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">编码器名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="CoPartName"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">工控机编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="IpcPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">工控机名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="IpcPartName"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">二维码识读模块编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="QrPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">二维码识读模块名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="QrPartName"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">人脸图像采集模块编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="FPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">人脸图像采集模块名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="FPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">旅行证件识读模块编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="TPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">旅行证件识读模块名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="TPartName" disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">电机驱动器编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="MdPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">电机驱动器名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="MdPartName"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">测量光幕编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="MlPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">测量光幕名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="MlPartName"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">安全光幕编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="SlPartNumber"
                                   disabled="disabled"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" style="width: 180px">安全光幕名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="SlPartName"
                                   disabled="disabled"/>
                        </div>
                    </div>-->
                </div>
            </div>
        </div>
    </div>
</div>
<div th:replace="common/script::footer"></div>
<script th:inline="javascript">
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index', //主入口模块
    }).use(['index', 'form', 'crud'], function () {
        let $ = layui.$,
            form = layui.form,
            crud = layui.crud,
            info = [[${info}]];
        //$('#upload-img').attr('src', info.picture);
        if (info.picture == null) {
           // $('#upload-img-text').val("暂无图片").show();
        } else {
            let src_P = info.picture.split(",");
            for (let j in src_P) {
                $('#upload-img' + j).attr('src', src_P[j]).show();
            }
        }
        form.val('info_form', info);
    });
</script>
</body>
</html>